package com.zhuss.controller.advice;

import com.zhuss.advice.proposalSon.ProposalSonReadServiceExt;
import com.zhuss.bean.bo.advice.proposalSon.SearchProposalSonBo;
import com.zhuss.common.BaseController;
import com.zhuss.common.ReadService;
import com.zhuss.exception.WpsException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zhushanshuo
 * @Date: 2020/3/6 16:39
 */
@RestController
@RequestMapping("/proposalSon")
public class ProposalSonReadController extends BaseController {

    @Autowired
    @Qualifier("proposalSonReadService")
    private ReadService<Object, Object> proposalSonReadService;

    @Autowired
    @Qualifier("proposalSonReadServiceExt")
    private ProposalSonReadServiceExt proposalSonReadServiceExt;

    /**
     * 列表
     * @throws WpsException
     */
    @ResponseBody
    @RequestMapping("/list")
    public Object list(@RequestBody SearchProposalSonBo bo) throws WpsException {
        Object result = proposalSonReadService.list(bo);
        return result;
    }
}
